﻿@model Coslen.TahorCRM.Domain.Entities.ViewModels.Editing.AddressEditViewModel
@Html.HiddenFor(model => model.Address.AddressId)
@Html.HiddenFor(model => model.Address.CreatedAt)
@Html.HiddenFor(model => model.Address.UpdatedAt)
@Html.HiddenFor(model => model.Address.DeletedAt)
@Html.HiddenFor(model => model.Address.EntityLinkId)
<div class="editor-row">
    <div class="editor-label">
        @Html.LabelFor(model => model.Address.AddressTypeId)
    </div>
    <div class="editor-field">
        @Html.DropDownListFor(model => model.Address.AddressTypeId, Model.AddressTypeList)
        @Html.ValidationMessageFor(model => model.Address.AddressTypeId)
    </div>
</div>
<div class="editor-row">
    <div class="editor-label">
        @Html.LabelFor(model => model.Address.Street1)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Address.Street1)
        @Html.ValidationMessageFor(model => model.Address.Street1)
    </div>
</div>
<div class="editor-row">
    <div class="editor-label">
        @Html.LabelFor(model => model.Address.Street2)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Address.Street2)
        @Html.ValidationMessageFor(model => model.Address.Street2)
    </div>
</div>
<div class="editor-row">
    <div class="editor-label">
        @Html.LabelFor(model => model.Address.Street3)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Address.Street3)
        @Html.ValidationMessageFor(model => model.Address.Street3)
    </div>
</div>
<div class="editor-row">
    <div class="editor-label">
        @Html.LabelFor(model => model.Address.Suburb)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Address.Suburb)
        @Html.ValidationMessageFor(model => model.Address.Suburb)
    </div>
</div>
<div class="editor-row">
    <div class="editor-label">
        @Html.LabelFor(model => model.Address.CountryRegionId)
    </div>
    <div class="editor-field">
        @Html.DropDownListFor(model => model.Address.CountryRegionId, Model.CountryRegionList)
        @Html.ValidationMessageFor(model => model.Address.CountryRegionId)
    </div>
</div>
<div class="editor-row">
    <div class="editor-label">
        @Html.LabelFor(model => model.Address.CountryId)
    </div>
    <div class="editor-field">
        @Html.DropDownListFor(model => model.Address.CountryId, Model.CountryList)
        @Html.ValidationMessageFor(model => model.Address.CountryId)
    </div>
</div>
<div class="editor-row">
    <div class="editor-label">
        @Html.LabelFor(model => model.Address.PostCode)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Address.PostCode)
        @Html.ValidationMessageFor(model => model.Address.PostCode)
    </div>
</div>
<div class="editor-row">
    <div class="editor-label">
        @Html.LabelFor(model => model.Address.DoNotUse)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Address.DoNotUse)
        @Html.ValidationMessageFor(model => model.Address.DoNotUse)
    </div>
</div>
<div class="editor-row">
    <div class="editor-label">
        @Html.LabelFor(model => model.Address.IsPrimary)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Address.IsPrimary)
        @Html.ValidationMessageFor(model => model.Address.IsPrimary)
    </div>
</div>
